package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class AdministratorType implements Serializable {
    private String ano;

    private String aname;

    private String atype;

    private String adesc;

    private static final long serialVersionUID = 1L;

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getAtype() {
        return atype;
    }

    public void setAtype(String atype) {
        this.atype = atype;
    }

    public String getAdesc() {
        return adesc;
    }

    public void setAdesc(String adesc) {
        this.adesc = adesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AdministratorType other = (AdministratorType) that;
        return (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getAname() == null ? other.getAname() == null : this.getAname().equals(other.getAname()))
            && (this.getAtype() == null ? other.getAtype() == null : this.getAtype().equals(other.getAtype()))
            && (this.getAdesc() == null ? other.getAdesc() == null : this.getAdesc().equals(other.getAdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getAname() == null) ? 0 : getAname().hashCode());
        result = prime * result + ((getAtype() == null) ? 0 : getAtype().hashCode());
        result = prime * result + ((getAdesc() == null) ? 0 : getAdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ano=").append(ano);
        sb.append(", aname=").append(aname);
        sb.append(", atype=").append(atype);
        sb.append(", adesc=").append(adesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}